package com.yunji.framework_template.books.biz.service;

import com.yunji.framework_template.books.orm.persistence.model.BooksUser;
import com.yunji.framework_template.books.orm.persistence.mapper.BooksUserMapper;
import com.yunji.framework_template.common.web.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by fenglibin on 2019/01/24.
 */
@Service
public class BooksUserService {

	@Autowired
    private BooksUserMapper booksUserMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return booksUserMapper.deleteByPrimaryKey(id);
    }

    public int insert(BooksUser record){
        return booksUserMapper.insert(record);
    }

    public int insertSelective(BooksUser record){
        return booksUserMapper.insertSelective(record);
    }

    public BooksUser selectByPrimaryKey(Integer id){
        return booksUserMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(BooksUser record){
        return booksUserMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BooksUser record){
        return booksUserMapper.updateByPrimaryKey(record);
    }

    public List<BooksUser> selectByCondition(BooksUser record){
        return booksUserMapper.selectByCondition(record);
    }

    public List<BooksUser> selectAll(){
        return booksUserMapper.selectAll();
    }

    public List<BooksUser> selectByPage(Page<BooksUser> page){
        return booksUserMapper.selectByPage(page);
    }

    public Integer count(BooksUser record){
        return booksUserMapper.count(record);
    }

    public int deleteByCondition(BooksUser record){
        return booksUserMapper.deleteByCondition(record);
    }

}
